package com.hxl.tech.gateway.auth.util;

import cn.hutool.core.lang.generator.SnowflakeGenerator;

/**
 * ID生成
 * @author soliddq
 * @date 2023-09-20
 */
public class AutoGenerateIDUtil {

    private final static SnowflakeGenerator snowflakeGenerator = new SnowflakeGenerator();

    public static String next(String prefix) {
        return prefix + snowflakeGenerator.next();
    }

    public static Long next() {
        return snowflakeGenerator.next();
    }
}
